﻿using System;
using System.IO;
using System.Collections.Generic;

namespace FileFinder
{
    public class FileFinder
    {
        static public List<String>  GetFilesByMask(String Folder, IEnumerable<String> Masks)
        {
            List<String> Files = new List<String>();

            if (!System.IO.Directory.Exists(Folder)) return null;

            foreach(String Mask in Masks)
            {
                Files.AddRange(Directory.EnumerateFiles(Folder,
                            Mask, SearchOption.AllDirectories));
            }
            return Files;
        }
    }
}